import { createRouter, createWebHistory } from 'vue-router';

// 路由信息
const routes = [
  {
    path: '/',
    name: 'home',
    component: () => import('./views/home/index.vue'),
  },
  {
    path: '/whit',
    name: 'whit',
    component: () => import('./views/whit/index.vue'),
  },
  {
    path: '/spme',
    name: 'spme',
    component: () => import('./views/spme/index.vue'),
  },
];

// 导出路由
const router = createRouter({
  history: createWebHistory(),
  routes,
});

export default router;
